import request from '@/utils/request'

// 页面列表
export const getEquipSearch = (params) => {
  return request({
    url: '/api/vm-service/vm/search',
    params
  })
}

// 销售量

export const getSales = (params) => {
  return request({
    url: '/api/order-service/report/orderCount',
    params
  })
}
// 销售量
export const moneySales = (params) => {
  return request({
    url: '/api/order-service/report/orderAmount',
    params
  })
}

// 补货次数
export const replenishment = (innerCode, start, end) => {
  return request({
    url:
      '/api/task-service/task/supplyCount/' +
      innerCode +
      '/' +
      start +
      '/' +
      end
  })
}

// 维修次数
export const maintenance = (innerCode, start, end) => {
  return request({
    url:
      '/api/task-service/task/repairCount/' +
      innerCode +
      '/' +
      start +
      '/' +
      end
  })
}

// 货品个数量
export const shopSales = (innerCode, start, end) => {
  return request({
    url:
      '/api/order-service/report/skuCollect/' +
      innerCode +
      '/' +
      start +
      '/' +
      end
  })
}
